home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: sqrt() cheesy question
- Date: 25 Feb 1996 19:34:43 -0500
- Organization: University of Maryland Baltimore County
- Message-ID: <4gqv73$ie8@umbc9.umbc.edu>
- References: <4gjmmt$lt7@hopi.dtcc.edu>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Rob Wiltbank <w4582@hopi.dtcc.edu> wrote:
- |> Howdy all. I'm in a bind.
- |>
- |> I'm in a beggining C course at school, and I'm about 2 weeks ahead of the
- |> class so I'm doing projects that the class hasn't even considered going
- |> over yet. I'm still on the very newbie side of it all.
- |>
- |> Could someone post the function definition of the sqrt() function found
- |> in math.h?
-
- First of all why do you need to know unless your professor wants you
- to implement your own version. Secondly, please correct me if I'm wrong,
- but does the standard actually give an explicit formula on how a sqrt()
- must be written? I'd think it would define behavior and allow the
- implementor whatever freedom they need.
-
- Using some kind of fixed point approximation would work as would Newton's
- method. However, these are more number theory than a beginning C class.
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-